home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / update~4.z / update~4 / lib_stdio_notused_sscanf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  504 b   |  33 lines

  1. /*                s s c a n f
  2.  *
  3.  * Formatted input from a string. The function returns the number
  4.  * items scanned from the string and EOF on failure.
  5.  *
  6.  * Patchlevel 1.0
  7.  *
  8.  * Edit History:
  9.  */
  10.  
  11. #include "stdiolib.h"
  12.  
  13. /*LINTLIBRARY*/
  14. /*VARARGS2*/
  15. /*ARSGUSED*/
  16.  
  17. int sscanf(buf, fmt, va_alist)
  18.  
  19. char *buf;                /* output buffer */
  20. char *fmt;                /* format */
  21. va_dcl
  22.  
  23. {
  24.   va_list arg;                /* argument vector */
  25.   int v;                /* return value */
  26.  
  27.   va_start(arg);
  28.   v = vsscanf(buf, fmt, arg);
  29.   va_end(arg);
  30.  
  31.   return v;
  32. }
  33.